/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.user.dto.AppWithdrawalRecordPageDTO;
import com.pig4cloud.pigx.user.dto.ApplyWithdrawalDTO;
import com.pig4cloud.pigx.user.dto.WithdrawalRecordPageDTO;
import com.pig4cloud.pigx.user.dto.WithdrawalToExamineDTO;
import com.pig4cloud.pigx.user.entity.WithdrawalRecord;
import com.pig4cloud.pigx.user.vo.AdminPageDemoVO;
import com.pig4cloud.pigx.user.vo.LoginUserWithdrawalRecordVO;
import com.pig4cloud.pigx.user.vo.UserWithdrawalInfoVO;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.math.BigDecimal;

/**
 * 提现记录
 *
 * @author pigx code generator
 * @date 2022-11-28 16:16:25
 */
public interface WithdrawalRecordService extends IService<WithdrawalRecord> {

	R<AdminPageDemoVO<WithdrawalRecord>> getWithdrawalRecordPage(WithdrawalRecordPageDTO dto);

	/**
	 * 获取用户提现记录
	 * @param dto dto
	 * @return r
	 */
	R<Page<LoginUserWithdrawalRecordVO>> getAppPage(AppWithdrawalRecordPageDTO dto);

	/**
	 * 用户提现申请
	 * @param dto dto
	 * @return r
	 */
	R<String> create(ApplyWithdrawalDTO dto);

	/**
	 * 划转
	 * @param num 数量
	 * @return r
	 */
	R<String> transfer(BigDecimal num);

	/**
	 * 提现后台审核
	 * @param dto dto
	 * @return r
	 */
	R<String> toExamine(WithdrawalToExamineDTO dto);

	/**
	 * 提现审核用户信息
	 * @param userId userId
	 * @return r
	 */
	R<UserWithdrawalInfoVO> getUserInfo(Long userId);

	/**
	 * excel 导出
	 * @param dto dto
	 * @return r
	 */
	HSSFWorkbook excel(WithdrawalRecordPageDTO dto);

}
